@import "../../../../../assets/css/labb-lib";

.labb-gallery-wrap {
  clear: both;
  .labb-gallery-header {
    position: relative;
    max-width: 1140px;
    margin: 0 auto 30px;
    overflow: hidden;
    clear: both;
     display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;

    &.labb-no-heading {
      justify-content: center;
      }
    @include respond-to-max(800) {
      flex-flow: column wrap;
      justify-content: flex-start;
      }
    }
  .labb-heading {
    display: inline-block;
    text-align: left;
    max-width: none;
    font-size: 32px;
    line-height: 44px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
    margin: 0 100px 0 0;
    .labb-dark-bg & {
      color: #e5e5e5;
      }
    @include respond-to-max(800) {
      margin-bottom: 30px;
      }
    }
  .labb-taxonomy-filter {
    display: block;
    margin: 0;
    padding: 0;
    @include align-self(center);
    @include respond-to-max(800) {
      @include align-self(flex-start);
      }
    .labb-filter-item {
      position: relative;
      display: inline-block;
      margin: 0 0 15px 0;
      padding: 0;
      font-style: normal;
      border-bottom: 1px solid #ddd;
      .labb-dark-bg & {
        border-color: #444;
        }
      a {
        font-size: 15px;
        line-height: 24px;
        transition: all .4s ease-in-out 0s;
        display: block;
        color: #777;
        padding: 0 15px 15px;
        .labb-dark-bg & {
          color: #999;
          }
        &:hover {
          color: #222;
          .labb-dark-bg & {
            color: #fff;
            }
          }
        @include respond-to-max(479) {
          padding: 0 10px 8px;
          }
        }
      &.labb-active {
        a {
          color: #222;
          .labb-dark-bg & {
            color: #fff;
            }
          }
        &:after {
          content: '';
          position: absolute;
          left: 0;
          bottom: 0;
          border-bottom: 3px solid #f94213;
          width: 100%;
          }
        }
      &:last-child {
        margin-right: 0;
        }
      }
    }
  .labb-gallery {
    clear: both;
    .labb-gallery-item {
      margin: 0;
      .hentry {
        margin: 0;
        padding: 0;
        border: none;
        background: none;
        box-shadow: none;
        }
      .labb-project-image {
        position: relative;
        overflow: hidden;
        .fl-photo-content {
          width: 100%;
          }
        img {
          display: block;
          width: 100%;
          transition: all .4s ease-in-out 0s;
          }
        &:hover {
          img {
            filter: brightness(50%);
            }
          }
        .labb-image-info {
          display: block;
          text-align: center;
          .labb-entry-info {
            text-align: center;
            display: block;
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            margin: auto;
            max-width: 100%;
            transform: translateY(-50%);
            }
          .labb-entry-title {
            padding: 10px;
            margin: 0;
            font-size: 18px;
            line-height: 28px;
            font-weight: 400;
            color: #fff;
            opacity: 0;
            transition: opacity .4s ease-in-out 0s;
            @include respond-to-max(1024) {
              font-size: 18px;
              line-height: 26px;
              }
            a {
              display: inline;
              color: #fff;
              transition: all .3s ease-in-out 0s;
              border-bottom: 1px solid transparent;
              &:hover {
                border-bottom: 1px solid #ccc;
                }
              }
            }
          .labb-terms {
            display: block;
            color: #ddd;
            font-size: 14px;
            line-height: 22px;
            font-style: italic;
            opacity: 0;
            transition: opacity .4s ease-in-out 0s;
            }
          .labb-video-lightbox {
            color: #fff;
            font-size: 32px;
            line-height: 1;
            transition: color .4s ease-in-out 0s;
            &:hover {
              color: #ddd;
              }
            i {
              font-size: 32px;
              }
            }
          .labb-lightbox-item {
            display: block;
            opacity: 0;
            line-height: 0;
            font-size: 0;
            color: transparent;
            i {
              position: absolute;
              top: 0;
              right: 0;
              display: block;
              color: #fff;
              font-size: 22px;
              line-height: 1;
              padding: 12px;
              transition: all .3s ease-in-out 0s;
              }
            &.labb-click-icon {
              background: transparent;
              &:hover i {
                background: rgba(0, 0, 0, 0.5);;
                }
              }
            &.labb-click-anywhere {
              position: absolute;
              top: 0;
              left: 0;
              height: 100%;
              width: 100%;
              }
            }
          }
        &:hover {
          .labb-image-info {
            .labb-entry-title, .labb-terms, .labb-lightbox-item {
              opacity: 1;
              }
            }
          }
        }
      .labb-html5-video {
        video {
          width: 100%;
          height: auto;
          margin: 0;
          line-height: 1;
          border: none;
          object-fit: cover; /* Make poster occupy the entire video */
          }
        }
      .labb-youtube-video, .labb-vimeo-video {
        height: 0;
        padding-bottom: 56.25%; /* 16:9 */
        position: relative;
        iframe {
          position: absolute;
          top: 0;
          left: 0;
          right: 0;
          bottom: 0;
          width: 100%;
          height: 100%;
          }
        }
      }
    }
  .labb-pagination {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    margin-top: 50px;
    clear: both;
    .labb-page-nav {
      $border-color: #dcdcdc;
      @include flex(0 1 auto);
      font-size: 15px;
      line-height: 24px;
      color: #666;
      padding: 5px 15px;
      margin: 0 2px;
      border-right: 1px solid $border-color;
      border-top: 1px solid $border-color;
      border-bottom: 1px solid $border-color;
      border-left: 1px solid $border-color;
      margin-bottom: 10px;
      outline: none;
      cursor: pointer;
      border-radius: 2px;
      transition: all 0.3s ease-in-out 0s;
      i {
        color: #222;
        font-size: 12px;
        line-height: 1;
        .labb-dark-bg & {
          color: #bbb;
          }
        }
      &[data-page="prev"], &[data-page="next"] {
        padding: 5px 18px;
        }
      &[data-page="next"] {
        margin-right: 0;
        }
      &.labb-dotted {
        border: none;
        pointer-events: none;
        padding: 5px 8px;
        }
      &:hover, &.labb-current-page {
        background: #eee;
        }
      &.labb-disabled, &.labb-current-page {
        pointer-events: none;
        }
      &.labb-disabled, &.labb-disabled i {
        color: #999;
        border-color: #eaeaea;
        .labb-dark-bg & {
          border-color: #444;
          color: #888;
          }
        }
      .labb-dark-bg & {
        border-color: #606060;
        color: #aaa;
        &:hover, &.labb-current-page {
          background: #333;
          }
        }
      }
    }
  .labb-load-more {
    clear: both;
    color: #fff;
    padding: 15px 25px;
    border-radius: 999px;
    outline: none;
    transition: all .3s ease-in-out 0s;
    &:hover {
      color: #eee;
      background: #333;
      border-color: #333;
      }
    &.labb-disabled {
      display: none;
      }
    }
  .labb-loading {
    position: relative;
    margin: 0 -51px 0 15px;
    visibility: hidden;
    }
  &.labb-processing .labb-loading {
    visibility: visible;
    }
  }